package com.ershi.spring.ioc.beanFactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 二十
 * @since 2021/10/30 6:34 下午
 */
public class MyClassPathXmlApplicationContext extends ClassPathXmlApplicationContext {

	public MyClassPathXmlApplicationContext(String...configLocations){
		super(configLocations);
	}

	@Override
	protected void initPropertySources(){
		System.out.println("这是我自己定义的ioc容器");
		//getEnvironment().setRequiredProperties("ES_HOME");
	}
}
